package com.toutiao.time

import java.util.Date

import org.msgpack.annotation.Message
import org.msgpack.ScalaMessagePack

import com.toutiao.issue.SimpleDate

@Message
class Event (

    ) {
    var nm: String = "" // NAME
    var ms: Array[String] = Array("") // Member
    var vs: Map[String,Double] = Map[String,Double]() // Token
    var s: Double = 0.0// Norm  
    var title: String = ""
    var ct: Date = SimpleDate.getDay // CreateTime
    var ut: Date = SimpleDate.getDay // UpdateTime
    
  //def this() = this("x", Array(""), Map[String,Double](), SimpleDate.getDay, SimpleDate.getDay,0.0)
}

//object TestEvent extends App {
//  
//  val e = new Event
//  e.nm = "xxx"
//  
//  val x = ScalaMessagePack.write(e)
//  
//  val ee = ScalaMessagePack.read[Event](x)
//  
//  println(e.nm)
//  println(ee.nm)
//  
//  
//}